package com.item.service;

import com.item.dao.PostPraiseMapper;
import com.item.dao.model.PostPraise;
import com.item.dao.model.PostPraiseExample;
import com.item.dao.model.PostPraiseKey;
import java.util.List;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PostPraiseService {
    @Autowired
    private PostPraiseMapper postPraiseMapper;

    private static final Logger logger = Logger.getLogger(PostPraiseService.class);

    public int countByExample(PostPraiseExample example) {
        return this.postPraiseMapper.countByExample(example);
    }

    public PostPraise selectByPrimaryKey(PostPraiseKey key) {
        return this.postPraiseMapper.selectByPrimaryKey(key);
    }

    public List<PostPraise> selectByExample(PostPraiseExample example) {
        return this.postPraiseMapper.selectByExample(example);
    }

    public int deleteByPrimaryKey(PostPraiseKey key) {
        return this.postPraiseMapper.deleteByPrimaryKey(key);
    }

    public int updateByPrimaryKeySelective(PostPraise record) {
        return this.postPraiseMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(PostPraise record) {
        return this.postPraiseMapper.updateByPrimaryKey(record);
    }

    public int deleteByExample(PostPraiseExample example) {
        return this.postPraiseMapper.deleteByExample(example);
    }

    public int updateByExampleSelective(PostPraise record, PostPraiseExample example) {
        return this.postPraiseMapper.updateByExampleSelective(record, example);
    }

    public int updateByExample(PostPraise record, PostPraiseExample example) {
        return this.postPraiseMapper.updateByExample(record, example);
    }

    public int insert(PostPraise record) {
        return this.postPraiseMapper.insert(record);
    }

    public int insertSelective(PostPraise record) {
        return this.postPraiseMapper.insertSelective(record);
    }
}